package org.example.aop_demo1.service.impl;

import org.example.aop_demo1.annotation.Log;
import org.example.aop_demo1.entity.User;
import org.example.aop_demo1.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public User getUserById(int id) {
        return null;
    }

    @Override
    @Log
    public User saveUser(User user) {
        System.out.println("saveUser");
        return user;
    }
}
